﻿using SportsPlatform.Base;
using SportsPlatform.Dto.SportBusiness.CompetitionRuleInfo;
using SportsPlatform.Dto.SportBusiness.RegistrationInfo;
using SportsPlatform.Query.SportBusiness.CompetitionRuleInfo;
using SportsPlatform.Query.SportBusiness.RegistrationInfo;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SportsPlatform.SportBusiness.ISportBusiness
{
    /// <summary>
    /// 报名管理
    /// </summary>
    public interface IRegistrationInfoService
    {
        /// <summary>
        /// 列表查询
        /// </summary>
        /// <param name="Query"></param>
        /// <returns></returns>
        Task<PagePagingDto<RegistrationInfoListDto>> GetRegistrationInfoList(GetRegistrationInfoListQuery Query);


        /// <summary>
        /// 判断用户是否报名 true,已经报名，false没有报名
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        Task<BaseResultDto> IsRegistrationOrNot(IsRegistrationOrNotQuery query);

        /// <summary>
        /// 判断赛事项目参赛队名是否存在，true存在，false不存在
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        Task<BaseResultDto> IsCompeteTeamOrNot(IsCompeteTeamOrNotQuery query);

        /// <summary>
        /// 添加报名
        /// </summary>
        /// <param name="Query"></param>
        /// <returns></returns>
        Task<BaseResultDto> AddRegistrationInfo(AddRegistrationInfoQuery Query);

        /// <summary>
        /// 审批数据查询
        /// </summary>
        /// <param name="Query"></param>
        /// <returns></returns>
        Task<ResultDto<ApprovalGetRegistrationInfoDetailsDto>> ApprovalGetRegistrationInfoDetails(RegistrationInfoDetailsQuery Query);

        /// <summary>
        /// 审批数据
        /// </summary>
        /// <param name="Query"></param>
        /// <returns></returns>
        Task<BaseResultDto> ApprovalRegistrationInfo(ApprovalRegistrationInfo Query);

        /// <summary>
        /// 下载excel表
        /// </summary>
        /// <returns></returns>
        Task<ResultDto<string>> ExportRegistrationInfoList(GetRegistrationInfoListQuery Query);

        /// <summary>
        /// 下载PDF表
        /// </summary>
        /// <returns></returns>
        Task<ResultDto<string>> PDFRegistrationInfoList(GetRegistrationInfoListQuery Query);

        /// <summary>
        /// 根据用户ID查询列表
        /// </summary>
        /// <param name="Query"></param>
        /// <returns></returns>
        Task<PagePagingDto<RegistrationInfoByUserListDto>> RegistrationInfoByUserList(RegistrationInfoByUserListQuery Query);

        /// <summary>
        /// 根据用户ID查询详情
        /// </summary>
        /// <param name="Query"></param>
        /// <returns></returns>
        Task<ResultDto<RegistrationInfoByUserDetailsDto>> RegistrationInfoByUserDetails(RegistrationInfoByUserDetailsQuery Query);

        /// <summary>
        /// 批量审批报名
        /// </summary>
        /// <param name="infos"></param>
        /// <returns></returns>
        Task<BaseResultDto> ApprovalRegistrationInfoList(ApprovalRegistrationInfos infos);
    }
}
